package com.weimob.mcloud.wechatwork.customer.mq.dto;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * @author yuzhaoyang
 * @desc
 * @date 2021-02-04 21:59
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class CorpChatGroupDTO implements Serializable {
    private static final long serialVersionUID = 3280153923478145618L;

    /**
     * corpId
     */
    private String corpId;

    /**
     * 群Id
     */
    private String chatId;

    /**
     * 代自建应用的templateId
     */
    private String templateId;

    /**
     * 是否初始化历史数据
     */
    private Boolean isInitGroup;

    /**
     * 限频的taskId
     */
    private Long taskId;

    /**
     * 变更事件
     * change_external_chat 群变更
     */
    private String event;

    /**
     * 群解散时间
     */
    private Date dismissDate;

    /**
     * 具体事件标识（create，update，dismiss)
     */
    private String changeType;

    /**
     * 变更详情
     */
    private String updateDetail;

    /**
     * 退群时间
     */
    private Date quitDate;

    /**
     * 退群原因
     */
    private Integer quitScene;
}
